package org.deltaset.faces.module;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author dmakariev
 */
enum UrlCache {

    INSTANCE;
    private static final Map<String, URL> pathToUrlCache = new HashMap<String, URL>();

    boolean containsKey(String path) {
        return pathToUrlCache.containsKey(path);
    }

    URL get(String path) {
        return pathToUrlCache.get(path);
    }

    void put(String path, URL url) {
        pathToUrlCache.put(path, url);
    }
}
